package com.example.springLearning.part5.controller;


import com.example.springLearning.part5.entity.Student;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/spring/part5")
public class part5Controller {

//    @Value("#{student}")
//    private Student student;

    @Value("ssh")
    private String student;

//    @Value("${ip}")
//    private String ip;

    @Value("${username1}")
    private String username;

    @Value("${password}")
    private String password;

    @RequestMapping(path = "student", method = RequestMethod.GET)
    public String hi() {
        return "hello world, student is : " + student + "-----------" + username + password;
    }
}
